package com.newmedia.gui;

import java.awt.*;

import javax.swing.*;



public class Instructions extends JFrame {
	Graphics m_Graphics;
	
	public Instructions() {
		setTitle("Instructions");
		setSize(500, 500);
		setLayout(new FlowLayout());
		setLocationRelativeTo(null);
		setVisible(true);
		
		JLabel title = new JLabel("Music Composer Instructions");
		title.setFont(new Font("Serif", Font.PLAIN, 36));
	    add(title);
	   
	    JLabel instructions = new JLabel("<html>" +
	    		"<br/>The following are the list of Components and their function:" +
	    		"<br/>Green Button - Play" +
	    		"<br/>Yellow Button - Pause" +
	    		"<br/>Red Button - Stop" +
	    		"<br/>White Button - Erase" +
	    		"<br/>Slider Bar - Controls temop" +
	    		"<br/>Key Signature Drop Down menu - Pick Key to play in" +
	    		"<br/>Instrument Drop Down menu - Pick instrument to play" +
	    "</html>");
	    instructions.setFont(new Font("Serif", Font.PLAIN, 12));
	    add(instructions);
	    
	    JLabel instructions2 = new JLabel("<html>" +
	    		"<br/><br/> Click within the grid to draw notes to play."+
	    		"<br/>Using the side radio buttons, you can add mutiple streams of music to play simultaneous notes" + 
	    		"<br/>The x-axis is the beat and the y-axis is the notes in the key." +
	    		"<br/>It will play left to right as the red bar moves over them." +
	    		"<br/>Full instructions can be found at the following website:" +
	    "</html>");
	    instructions2.setFont(new Font("Serif", Font.PLAIN, 12));
	    add(instructions2);
	    
	    JLabel link = new JLabel("http://students.cse.tamu.edu/acofsky/csce445/MusicComposerUserManuel.html");
	    link.setFont(new Font("Serif", Font.PLAIN, 12));
	    add(link);
	    
	}
}


class InstructionsScreen extends JPanel {
	protected void paintComponent(Graphics g) {
		super.paintComponent(g);
		
	}
}
